package zzj.campus_book_sharing_platform.Service.impl;

import org.springframework.stereotype.Service;
import zzj.campus_book_sharing_platform.Dao.logDao;
import zzj.campus_book_sharing_platform.Entity.Log;
import zzj.campus_book_sharing_platform.Service.LogService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LogServiceImpl implements LogService {
    @Resource
    private logDao logDao;

    @Override
    public int insert(Log log) {
        return logDao.insert(log);
    }

    @Override
    public List<Log> queryAll() {
        return logDao.queryAll();
    }

    @Override
    public int selectById(int logId) {
        return logDao.selectById(logId);
    }

    @Override
    public int updateById(int logId, int opratorId, String messageReslove) {
        return logDao.updateById(logId,opratorId,messageReslove);
    }
}
